package com.wanczy.tmall.pojo;

import java.util.Date;
import java.util.List;

public class Product {
	private Integer id;
	
	private String name;
	
	private String subTitle;
	
	private float originalPrice;
	
	private float promotePrice;
	
	private Integer stock;
	
	private Integer cid;
	
	private Date createDate;
//	非数据库字段
	
	private Category category;
	
	  private ProductImage firstProductImage;
	  
	  private List<ProductImage> productSingleImages;
	  
	  private List<ProductImage> productDetailImages;
	  
//	  销售总数
	  private int saleCount;
	  //累计评论
	  private int reviewCount;
	  
	  
	  
	    public List<ProductImage> getProductSingleImages() {
		return productSingleImages;
	}

	public void setProductSingleImages(List<ProductImage> productSingleImages) {
		this.productSingleImages = productSingleImages;
	}

	public List<ProductImage> getProductDetailImages() {
		return productDetailImages;
	}

	public void setProductDetailImages(List<ProductImage> productDetailImages) {
		this.productDetailImages = productDetailImages;
	}

	public int getSaleCount() {
		return saleCount;
	}

	public void setSaleCount(int saleCount) {
		this.saleCount = saleCount;
	}

	public int getReviewCount() {
		return reviewCount;
	}

	public void setReviewCount(int reviewCount) {
		this.reviewCount = reviewCount;
	}

		public ProductImage getFirstProductImage() {
	        return firstProductImage;
	    }
	 
	    public void setFirstProductImage(ProductImage firstProductImage) {
	        this.firstProductImage = firstProductImage;
	    }

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public String getSubTitle() {
		return subTitle;
	}

	public void setSubTitle(String subTitle) {
		this.subTitle = subTitle == null ? null : subTitle.trim();
	}

	



	public float getOriginalPrice() {
		return originalPrice;
	}

	public void setOriginalPrice(float originalPrice) {
		this.originalPrice = originalPrice;
	}

	public float getPromotePrice() {
		return promotePrice;
	}

	public void setPromotePrice(float promotePrice) {
		this.promotePrice = promotePrice;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public Integer getCid() {
		return cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	
}
